<?php  if (!defined('PATH_HD')) exit('No direct script access allowed');
	class FlagControl extends Control{
		public function index(){
			$db  = M("flag");
        	$flag = $db->all();
        	$this->assign("data",$flag);
			$this->display();
		}
		public function addshow(){
			$this->display();
		}
		public function add(){
			$db = M("flag");
        	if($db->add()){
            $this->success("添加属性成功",'index');
        	}else{
            $this->error("属性添加失败");
        	}
		}
	}
?>